<?php
/**
 * 配置信息
 * @return
 * @author yuncran@126.com
 */

namespace app\model;

use app\BaseModel;

class ConfigModel extends BaseModel
{

    protected $pk = "id";

    protected $name = 'config';


    public static function getSystemInfo()
    {
        return self::getModel()->where(['group' => 'basic'])->field(['group', 'title', 'value', 'tip'])->select();
    }


    public static function getSensitive($where)
    {
        return self::getModel()->where($where)->field(['id', 'name', 'title', 'value'])->find();
    }

}